﻿@using CuongHanh
@using CuongHanh.Configuration
@using CuongHanh.Context
@using CuongHanh.Models
@{
    string language = Html.GetLanguageName();
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>@ViewBag.Title</title>
        <link href="@Url.Content("~/Content/newcss/css/resetcss.css")" rel="stylesheet" type="text/css" />
        <link href="@Url.Content("~/Content/newcss/css/general.css")" rel="stylesheet" type="text/css" />
        <link href="@Url.Content("~/Content/newcss/css/control.css")" rel="stylesheet" type="text/css" />
        <!--đoạn này dùng fix trình duyệt cũ ko hiểu HTMl5-->
        <script type="text/javascript" src="@Url.Content("~/Content/newcss/js/jquery-1.8.3.min.js")"></script>
<script src="@Url.Content("~/Content/newcss/js/utility-data.js")" type="text/javascript"></script>
       <script src='@Url.Content("~/Scripts/jquery.validate.js")' type='text/javascript'></script>
<script src='@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")' type='text/javascript'></script>
        <script type="text/javascript">
            (function() {
                var els = [
                    'section', 'article', 'hgroup', 'header', 'footer', 'nav', 'aside',
                    'figure', 'mark', 'time', 'ruby', 'rt', 'rp'
                ];
                for (var i = 0; i < els.length; i++)
                    document.createElement(els[i]);

            })();

            function changLanguage(language) {
                $.post('@Url.Action("SetLanguage",
                                "Home")', { language: language }, function() {
                    $('#flag-').attr('src');
                    location.reload();
                });
            }

            function loadBagForGem() {
                $('#bag_for_gem').load('@Url.Action("CountCartItemOfGem","Cart")', function() {
                });
            }

            function gotocart() {
                location.href = '@UrlManager.GetLinkByUrl(LinkConfig.GIO_HANG)';
            }
            function gotopayment() {
                location.href = '@UrlManager.GetLinkByUrl(LinkConfig.THANH_TOAN)';
            }
            function gotogemindex() {
                location.href = '@UrlManager.GetLinkByUrl(LinkConfig.TRANG_SUC_INDEX)';
            }
        </script>
        
        <style type="text/css">
            .flag {
                margin: 2px;
                padding: 0;
            }

            .flag:hover {
                border: 1px #fff solid;
                margin: 1px;
            }
        </style>
    </head>
    <body>
        <div class="index">
            <div class="index_header">
                <header class="header">
                    <div class="header_L"><a href="@string.Format("{0}/{1}",AppUtil.CurrentDomain, AppUtil.GEM_NAME)"><img src="@Url.Content("~/Content/newcss/images/logo_cuong_hanh.png")" width="130"/></a></div>
                    

                    <div class="header_Ce">
                        <div style="float: right; padding-top: 5px;">
                            <a href="javascript:void(0)" onclick="changLanguage('en')" class="mn_american"></a>
                            <a href="javascript:void(0)" onclick="changLanguage('')"  class="mn_vietnam"></a>
                        </div>
                            
                        @Html.Partial("Partial/_LoginInfo")
                        <div style=" padding-top: 30px;">
                            <p id="bag_for_gem" class="shopping_home" >
                            @Html.Partial("Partial/_CountCartItemOfGem")</p>
                            <div class="searchform" style="float: right;">
                                <input type="text" value="" placeholder="@Html.GetResource("search")" class="searchfield"><input type="button" value="" class="searchbutton">
                            </div> 
                        </div>
                    </div>
                    <br class="clean" />
                </header>
                <div class="index_menu">
                    <div class="menu_center">
                        <ul class="menu">
                            <li><a href="@string.Format("{0}/{1}/thiet-ke",AppUtil.CurrentDomain, AppUtil.GEM_NAME)">@Html.GetResource("startdesigning")</a></li>
                            <li><a href="javascript:void(0);">@Html.GetResource("newstyle")</a></li>
                            <li><a href="javascript:void(0);">@Html.GetResource("collections")</a></li>
                            <li><a href="javascript:void(0);">@Html.GetResource("helpandfaq")</a></li>
                        </ul>
                    </div>
                </div>
                <div class="index_middle">
                    <div class="content">
                        @RenderBody()
                    </div>
                    <div class="menu_info">
                        <ul class="menu_info_list">
                            <li>
                                <p class="menu_info_TT">@Html.GetResource("gioithieuvecongty")</p>
                                <p class="menu_info_des">
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.GioiThieuVeCongTy,language)">@Html.GetResource("gioithieuvecongty")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.ChinhSachVaQuiDinhChung,language)">@Html.GetResource("chinhsachvaquydinhchung")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.TinKhuyenMai,language)">@Html.GetResource("tinkhuyenmai")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.TinTuc,language)">@Html.GetResource("tintuc1")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.PhuongTienTruyenThong,language)">@Html.GetResource("phuongtientruyenthong")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.LienHe,language)">@Html.GetResource("lienhe1")</a>
                                </p>
                            </li>
                            <li>
                                <p class="menu_info_TT">@Html.GetResource("chamsockhachhang")</p>
                                <p class="menu_info_des">
                                    <a href="@UrlManager.GetLinkByUrl(LinkConfig.Register(language))">@Html.GetResource("dangkythanhvien")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.VanChuyenGiaoHang,language)">@Html.GetResource("vanchuyengiaohang")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.PhuongThucBaoHanh,language)">@Html.GetResource("phuongthucbaohanh")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.PhuongPhapBaoQuan,language)">@Html.GetResource("phuongphapbaoquan")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.DoiTraHang,language)">@Html.GetResource("doitrahang")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.CacCauHoiThuongGap,language)">@Html.GetResource("caccauhoithuonggap")</a>
                                </p>
                            </li>
                            <li>
                                <p class="menu_info_TT">@Html.GetResource("hotromuahang")</p>
                                <p class="menu_info_des">
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.HuongDanThietKe,language)">@Html.GetResource("huongdanthietke")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.HuongDanDoNi,language)">@Html.GetResource("huongdandoni")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.HuongDanDatHang,language)">@Html.GetResource("huongdandathang")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.HuongDanThanhToan,language)">@Html.GetResource("huongdanthanhtoan")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.TuVan,language)">@Html.GetResource("tuvan")</a>
                                    <a href="@UrlManager.LinkStaticPage(StaticPages.Khac,language)">@Html.GetResource("khac")</a>
                                </p>
                            </li>
                            @*<li>
                                <p class="menu_info_TT">Patents & Technology</p>
                                <p class="menu_info_des"><a href="#">Secure Patented Technology</a><a href="#">Secure Patented Technology</a></p>
                            </li>*@
                        </ul><br class="clean" />
                        <p class="social_link"><a class="pint"></a><a class="plus"></a><a class="fac"></a>               <a class="twi"></a>      
                        </p>
                        <p class="social_link"><a class="diner"></a><a class="america"></a><a class="master"></a><a class="visa"></a>      
                        </p>
                    </div>
                </div>
                <footer class="index_footer">
                    <div class="footer">
                        <a class="#"><img src="@Url.Content("~/Content/newcss/images/logo_cuong_hanh_w.png")" width="116" height="89" /></a>
                        <p class="footer_info" style="width: 400px;">
                            Công ty Cổ Phần Mỹ Nghệ - Trang sức - Đá quý Cường Hạnh<br/>
                            13U Lạc Long Quân, Phường 5, Quận 11, TP HCM<br/>
                            Tel: +84 86 279 1296 Fax: +84 86 281 6414 
                        </p>
                        <p class="footer_info"  style="width: 350px;">
                            Email: cuonghanh@CuongHanh.vn<br/>
                            Website: www.cuonghanh.vn | www.cuonghanh.com.vn <br/>
                            © Copyright 2014 CuongHanh
                        </p> 
                    </div>
                </footer>
            </div></div>
    </body>
</html>